
<body class="windows" data-platform="Windows">

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=686183218086593";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

	<div id="container">
		<div id="header" class="clearfix">
    <div id="logo"><a href="<?php echo base_url();?>" title="Trang chủ">www.phanmemnhanh.com</a></div>
    <div id="adheader" class="adbox">
	<?php echo $this->mads->ads("top", @$position); ?>
	</div>

</div>
<div class="clear">
</div>
<div id="tabs">
    <ul class="navigation">
        <li class="first home-menu dc-mega-li">
			<a href="<?php echo base_url();?>" class="dc-mega">
			<span>Tất cả</span>
			<span class="dc-mega-icon"></span>
			</a>
			<div class="sub-container mega" style="left: 0px; top: 44px; z-index: 9000;">
			<ul class="clearfix sub" style="display: none;">
			<div class="row" style="width: 948px;">
			<?php 
			foreach($categoryParent as $cate){
			?>
            <li class="<?php echo $cate->CAT_CODE;?> mega-unit mega-hdr ">
                <a href="<?php echo cate_url($cate);?>" class="mega-hdr-a" style="height: 33px;"> 
                    <span><?php echo $cate->CAT_NAME;?></span>
         
				</a>
                <div class="mega-unit mega-hdr" style="top: 44px; z-index: 9000;">
				<ul class="clearfix">
				<?php 
				if (isset($cate->CHILD) && $cate->CHILD) {
					foreach ($cate->CHILD as $c) { ?>
					<li class="<?php echo $c['CAT_CODE'] ; ?>">
							<a href="<?php echo cate_url((object)$c) ?>">
								<span><?php echo $c['CAT_NAME']; ?></span>
							</a>
						</li>
				<?php
					}
				}
				?>     
                    </ul>
				</div>
            </li>
            <?php
			}?>
		
			</div>
			<!--
			<div class="row" style="width: 948px;">
		
			</div> -->
			</ul></div>
		</li>
			<?php 
			foreach($categoryParent as $cate){
			
			?>
            <li id="<?php echo $cate->CAT_CODE;?>" class="item <?php echo $cate->CAT_CODE;?>">
                <a href="<?php echo cate_url($cate);?>" class="dc-mega">
                    <span><?php echo $cate->CAT_NAME;?></span>
                <span class="dc-mega-icon"></span></a>
                    <div class="sub-container non-mega" style="top: 44px; z-index: 9000;"><ul class="clearfix sub">
				<?php 
				if (isset($cate->CHILD) && $cate->CHILD) {
					foreach ($cate->CHILD as $c) { ?>
					<li class="<?php echo $c['CAT_CODE'] ; ?>">
							<a href="<?php echo cate_url((object)$c) ?>">
								<span><?php echo $c['CAT_NAME']; ?></span>
							</a>
						</li>
				<?php
					}
				}
				?>
                            
                    </ul></div>
            </li>
            <?php
			}?>
            

    </ul>
    <div id="searchBox">
<form action="<?php echo base_url();?>search" method="get">            <input type="text" name="q" id="q" placeholder="Nhập từ khóa tìm kiếm" x-webkit-speech="">
            <select id="platformss" name="platformId">
					<option value="" selected="selected">Tất cả </option>
					<?php
					foreach($categoryParent as $cate){
					?>
                    <option value="<?php echo $cate->CAT_CODE;?>"><?php echo $cate->CAT_NAME;?></option>
					<?php
					}
					?>
					
            </select>
            <input id="btnHeaderFind" type="submit" value="Tìm kiếm">
</form>        <div class="sharebox">

<div class="addthis_toolbox addthis_default_style "> 

<div class="atclear"></div>


</div>
        <div class="atclear"></div></div>
    </div>
</div>

<script type="text/javascript">

$(function (){
$('.navigation>li').hover(function(){
	var ul = $(this).find('ul');
	if (ul.css('display') == 'none')
		ul.show(50);
}, function(){
	var ul = $(this).find('ul');
	if (ul.css('display') != 'none')
		ul.hide('fast');
});
});

</script>
